<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // 需求：让用户输入自己的名字、年龄、性别，再输出到网页
    // 1.输入姓名、年龄、性别
    let uname = prompt("请输入姓名")
    let age = prompt("请输入年龄")
    let gender = prompt("请输入性别")
    // 打印输出
    document.write(uname, age, gender)
  </script>
</body>

</html>